/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/Layout/index.vue'
import { RouteConfig } from 'vue-router'

const creditRouter: RouteConfig = {
  path: '/credit',
  component: Layout,
  redirect: '/credit',
  name: 'credit',
  meta: {
    title: '风控中心',
    icon: 'table'
  },
  children: [
    {
      path: 'risk',
      // component: () => import('@/views/crystal/risk'),
      name: '智能风控',
      meta: { title: '智能风控' }
    },
    {
      path: 'crystal',
      // component: () => import('@/views/crystal/index'),
      name: '水晶球',
      meta: { title: '水晶球' }
    },
    {
      path: 'businessCredit',
      // component: () => import('@/views/dtCenter/businessCredit/index'),
      name: '征信看板',
      meta: { title: '征信看板' }
    }
  ]
}
export default creditRouter
